package com.chinamsp.codegen.convert.db.model;

import com.chinamsp.dydb.annotation.DBAlias;
import com.chinamsp.dydb.crud.BaseModel;

/**
 * 表字段
 * @author shifenghu
 *
 */
@DBAlias("COLUMNS")
public class TableColumn extends BaseModel {

	private static final long serialVersionUID = -5988519709664534148L;
	
	
	/**
	 * 字段名称
	 */
	private String columnName;
	
	/**
	 * 是否可以为空
	 */
	private String isNullable;
	
	/**
	 * 数据类型
	 */
	private String dataType;
	
	/**
	 * 最大长度
	 */
	private int characterMaxinum;
	
	/**
	 * key
	 */
	private String columnKey;
	
	/**
	 * 注释
	 */
	private String columnComment;
	
	/**
	 * 库
	 */
	private String tableSchema;
	
	/**
	 * 表名
	 */
	private String tableName;

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getIsNullable() {
		return isNullable;
	}

	public void setIsNullable(String isNullable) {
		this.isNullable = isNullable;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public int getCharacterMaxinum() {
		return characterMaxinum;
	}

	public void setCharacterMaxinum(int characterMaxinum) {
		this.characterMaxinum = characterMaxinum;
	}

	public String getColumnKey() {
		return columnKey;
	}

	public void setColumnKey(String columnKey) {
		this.columnKey = columnKey;
	}

	public String getColumnComment() {
		return columnComment;
	}

	public void setColumnComment(String columnComment) {
		this.columnComment = columnComment;
	}

	public String getTableSchema() {
		return tableSchema;
	}

	public void setTableSchema(String tableSchema) {
		this.tableSchema = tableSchema;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	
}
